<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>wickr-crypto-c: src/wickrcrypto/include/wickrcrypto/identity.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">wickr-crypto-c
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_92a70b6cc7e213c660915fdf1190028f.html">wickrcrypto</a></li><li class="navelem"><a class="el" href="dir_db4377ef08cfba82f5e7141624102360.html">include</a></li><li class="navelem"><a class="el" href="dir_2adb4122f2f58e588d09641dee9865e2.html">wickrcrypto</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">identity.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Copyright © 2012-2018 Wickr Inc.  All rights reserved.</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * This code is being released for EDUCATIONAL, ACADEMIC, AND CODE REVIEW PURPOSES</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * ONLY.  COMMERCIAL USE OF THE CODE IS EXPRESSLY PROHIBITED.  For additional details,</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * please see LICENSE</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> * THE CODE IS MADE AVAILABLE &quot;AS-IS&quot; AND WITHOUT ANY EXPRESS OR</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> * IMPLIED GUARANTEES AS TO FITNESS, MERCHANTABILITY, NON-</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> * INFRINGEMENT OR OTHERWISE. IT IS NOT BEING PROVIDED IN TRADE BUT ON</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * A VOLUNTARY BASIS ON BEHALF OF THE AUTHOR’S PART FOR THE BENEFIT</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * OF THE LICENSEE AND IS NOT MADE AVAILABLE FOR CONSUMER USE OR ANY</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> * OTHER USE OUTSIDE THE TERMS OF THIS LICENSE. ANYONE ACCESSING THE</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> * CODE SHOULD HAVE THE REQUISITE EXPERTISE TO SECURE THEIR SYSTEM</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * AND DEVICES AND TO ACCESS AND USE THE CODE FOR REVIEW PURPOSES</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> * ONLY. LICENSEE BEARS THE RISK OF ACCESSING AND USING THE CODE. IN</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> * PARTICULAR, AUTHOR BEARS NO LIABILITY FOR ANY INTERFERENCE WITH OR</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> * ADVERSE EFFECT THAT MAY OCCUR AS A RESULT OF THE LICENSEE</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> * ACCESSING AND/OR USING THE CODE ON LICENSEE’S SYSTEM.</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;</div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor">#ifndef identity_h</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#define identity_h</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#include &lt;stdlib.h&gt;</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#include &quot;buffer.h&quot;</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor">#include &quot;eckey.h&quot;</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="preprocessor">#include &quot;ecdsa.h&quot;</span></div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor">#include &quot;crypto_engine.h&quot;</span></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#include &quot;root_keys.h&quot;</span></div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">#include &quot;fingerprint.h&quot;</span></div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;    </div><div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="group__wickr__identity.html#ga43bd60836203349a1c745d0d29bf7706">   44</a></span>&#160;<span class="preprocessor">#define IDENTIFIER_LEN 32</span></div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<span class="comment">/* Define ROOT and NODE identity types */</span></div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span> { IDENTITY_TYPE_ROOT, IDENTITY_TYPE_NODE } wickr_identity_type;</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;</div><div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="group__wickr__identity.html#ga78aefa3835eb13ca75c0129583b5ebfa">   61</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span> { IDENTITY_CHAIN_STATUS_UNKNOWN, IDENTITY_CHAIN_STATUS_VALID, IDENTITY_CHAIN_STATUS_INVALID } <a class="code" href="group__wickr__identity.html#ga78aefa3835eb13ca75c0129583b5ebfa">wickr_identity_chain_status</a>;</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;</div><div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="structwickr__identity.html">   85</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structwickr__identity.html">wickr_identity</a> {</div><div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="structwickr__identity.html#a685dae977849c05c84ee4a0b10c9396d">   86</a></span>&#160;    wickr_identity_type <a class="code" href="structwickr__identity.html#a685dae977849c05c84ee4a0b10c9396d">type</a>;</div><div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="structwickr__identity.html#aed3657b22d83bb810b51ea1d1520b23e">   87</a></span>&#160;    <a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *<a class="code" href="structwickr__identity.html#aed3657b22d83bb810b51ea1d1520b23e">identifier</a>;</div><div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="structwickr__identity.html#a788a08ac03576cb76d9b2eaf81a7af3e">   88</a></span>&#160;    <a class="code" href="structwickr__ec__key.html">wickr_ec_key_t</a> *<a class="code" href="structwickr__identity.html#a788a08ac03576cb76d9b2eaf81a7af3e">sig_key</a>;</div><div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="structwickr__identity.html#afb6bd9f5f9707be10fb273ce8d0b5928">   89</a></span>&#160;    <a class="code" href="structwickr__ecdsa__result.html">wickr_ecdsa_result_t</a> *<a class="code" href="structwickr__identity.html#afb6bd9f5f9707be10fb273ce8d0b5928">signature</a>;</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;};</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structwickr__identity.html">wickr_identity</a> <a class="code" href="structwickr__identity.html">wickr_identity_t</a>;</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;</div><div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="structwickr__identity__chain.html">  110</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structwickr__identity__chain.html">wickr_identity_chain</a> {</div><div class="line"><a name="l00111"></a><span class="lineno"><a class="line" href="structwickr__identity__chain.html#acee365b411eb4a7e7c68c115d60e166e">  111</a></span>&#160;    <a class="code" href="group__wickr__identity.html#ga78aefa3835eb13ca75c0129583b5ebfa">wickr_identity_chain_status</a> <a class="code" href="structwickr__identity__chain.html#acee365b411eb4a7e7c68c115d60e166e">status</a>;</div><div class="line"><a name="l00112"></a><span class="lineno"><a class="line" href="structwickr__identity__chain.html#a0982b1510591138e2e7d0546741bc6e0">  112</a></span>&#160;    <a class="code" href="structwickr__identity.html">wickr_identity_t</a> *<a class="code" href="structwickr__identity__chain.html#a0982b1510591138e2e7d0546741bc6e0">root</a>;</div><div class="line"><a name="l00113"></a><span class="lineno"><a class="line" href="structwickr__identity__chain.html#a4343dae5f1c82057289c26e5c7bb1226">  113</a></span>&#160;    <a class="code" href="structwickr__identity.html">wickr_identity_t</a> *<a class="code" href="structwickr__identity__chain.html#a4343dae5f1c82057289c26e5c7bb1226">node</a>;</div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;};</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structwickr__identity__chain.html">wickr_identity_chain</a> <a class="code" href="structwickr__identity__chain.html">wickr_identity_chain_t</a>;</div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;</div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;<a class="code" href="structwickr__identity.html">wickr_identity_t</a> *<a class="code" href="group__wickr__identity.html#ga75bfef275a250a32784231e8c042913b">wickr_identity_create</a>(wickr_identity_type type, <a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *identifier, <a class="code" href="structwickr__ec__key.html">wickr_ec_key_t</a> *sig_key, <a class="code" href="structwickr__ecdsa__result.html">wickr_ecdsa_result_t</a> *signature);</div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;</div><div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;<a class="code" href="structwickr__ecdsa__result.html">wickr_ecdsa_result_t</a> *<a class="code" href="group__wickr__identity.html#ga32097764e57e70d85a2e1277146495c9">wickr_identity_sign</a>(<span class="keyword">const</span> <a class="code" href="structwickr__identity.html">wickr_identity_t</a> *identity, <span class="keyword">const</span> <a class="code" href="structwickr__crypto__engine.html">wickr_crypto_engine_t</a> *engine, <span class="keyword">const</span> <a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *data);</div><div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;</div><div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;<a class="code" href="structwickr__identity.html">wickr_identity_t</a> *<a class="code" href="group__wickr__identity.html#gae820c1efc090fef6a8d27dd700316023">wickr_node_identity_gen</a>(<span class="keyword">const</span> <a class="code" href="structwickr__crypto__engine.html">wickr_crypto_engine_t</a> *engine, <span class="keyword">const</span> <a class="code" href="structwickr__identity.html">wickr_identity_t</a> *root_identity);</div><div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;</div><div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;<a class="code" href="structwickr__identity.html">wickr_identity_t</a> *<a class="code" href="group__wickr__identity.html#ga14d1fb3ddd1dbd7797eb9b628eef99fe">wickr_identity_copy</a>(<span class="keyword">const</span> <a class="code" href="structwickr__identity.html">wickr_identity_t</a> *source);</div><div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;</div><div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__wickr__identity.html#ga9e4a0f3736d52836c9a9fc61794c8ddd">wickr_identity_destroy</a>(<a class="code" href="structwickr__identity.html">wickr_identity_t</a> **identity);</div><div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;    </div><div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;<a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *<a class="code" href="group__wickr__identity.html#ga79ca0713d0b90873e584379f26cbd051">wickr_identity_serialize</a>(<span class="keyword">const</span> <a class="code" href="structwickr__identity.html">wickr_identity_t</a> *identity);</div><div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;    </div><div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;</div><div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;</div><div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;<a class="code" href="structwickr__identity.html">wickr_identity_t</a> *<a class="code" href="group__wickr__identity.html#ga378e5b6ddabfe2c6ae7dbd5bdc43278e">wickr_identity_create_from_buffer</a>(<span class="keyword">const</span> <a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *buffer, <span class="keyword">const</span> <a class="code" href="structwickr__crypto__engine.html">wickr_crypto_engine_t</a> *engine);</div><div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;</div><div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;<a class="code" href="structwickr__fingerprint.html">wickr_fingerprint_t</a> *<a class="code" href="group__wickr__identity.html#ga4d9053bf0a7ea47c599891dce21d426a">wickr_identity_get_fingerprint</a>(<span class="keyword">const</span> <a class="code" href="structwickr__identity.html">wickr_identity_t</a> *identity,</div><div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;                                                    <a class="code" href="structwickr__crypto__engine.html">wickr_crypto_engine_t</a> engine);</div><div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;</div><div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;</div><div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;<a class="code" href="structwickr__fingerprint.html">wickr_fingerprint_t</a> *<a class="code" href="group__wickr__identity.html#ga8ac0f348981ec55ecbf365d6834a3c28">wickr_identity_get_bilateral_fingerprint</a>(<span class="keyword">const</span> <a class="code" href="structwickr__identity.html">wickr_identity_t</a> *identity,</div><div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;                                                              <span class="keyword">const</span> <a class="code" href="structwickr__identity.html">wickr_identity_t</a> *remote_identity,</div><div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;                                                              <a class="code" href="structwickr__crypto__engine.html">wickr_crypto_engine_t</a> engine);</div><div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;    </div><div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;<a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *wickr_identity_chain_serialize(<span class="keyword">const</span> <a class="code" href="structwickr__identity__chain.html">wickr_identity_chain_t</a> *identity_chain);</div><div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;</div><div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;<a class="code" href="structwickr__identity__chain.html">wickr_identity_chain_t</a> *wickr_identity_chain_create_from_buffer(<span class="keyword">const</span> <a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *buffer, <span class="keyword">const</span> <a class="code" href="structwickr__crypto__engine.html">wickr_crypto_engine_t</a> *engine);</div><div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;</div><div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;<a class="code" href="structwickr__identity__chain.html">wickr_identity_chain_t</a> *<a class="code" href="group__wickr__identity.html#ga79551385194ba6b044b676ce5c7400e6">wickr_identity_chain_create</a>(<a class="code" href="structwickr__identity.html">wickr_identity_t</a> *<a class="code" href="structwickr__identity__chain.html#a0982b1510591138e2e7d0546741bc6e0">root</a>, <a class="code" href="structwickr__identity.html">wickr_identity_t</a> *<a class="code" href="structwickr__identity__chain.html#a4343dae5f1c82057289c26e5c7bb1226">node</a>);</div><div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;</div><div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;<a class="code" href="structwickr__identity__chain.html">wickr_identity_chain_t</a> *<a class="code" href="group__wickr__identity.html#gac9d708d340abcd0b54d87434b71d2d9e">wickr_identity_chain_copy</a>(<span class="keyword">const</span> <a class="code" href="structwickr__identity__chain.html">wickr_identity_chain_t</a> *source);</div><div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;</div><div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;<span class="keywordtype">bool</span> <a class="code" href="group__wickr__identity.html#ga12f5b33c4947b6a2ca3df3bdaacafa10">wickr_identity_chain_validate</a>(<span class="keyword">const</span> <a class="code" href="structwickr__identity__chain.html">wickr_identity_chain_t</a> *chain, <span class="keyword">const</span> <a class="code" href="structwickr__crypto__engine.html">wickr_crypto_engine_t</a> *engine);</div><div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;</div><div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__wickr__identity.html#gadbddf6d49fddb2df103486970b3d564b">wickr_identity_chain_destroy</a>(<a class="code" href="structwickr__identity__chain.html">wickr_identity_chain_t</a> **chain);</div><div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160;</div><div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;}</div><div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;</div><div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* identity_h */</span><span class="preprocessor"></span></div><div class="ttc" id="group__wickr__identity_html_gac9d708d340abcd0b54d87434b71d2d9e"><div class="ttname"><a href="group__wickr__identity.html#gac9d708d340abcd0b54d87434b71d2d9e">wickr_identity_chain_copy</a></div><div class="ttdeci">wickr_identity_chain_t * wickr_identity_chain_copy(const wickr_identity_chain_t *source)</div></div>
<div class="ttc" id="structwickr__identity_html"><div class="ttname"><a href="structwickr__identity.html">wickr_identity</a></div><div class="ttdoc">A signing identity on the Wickr system.</div><div class="ttdef"><b>Definition:</b> identity.h:85</div></div>
<div class="ttc" id="group__wickr__identity_html_ga9e4a0f3736d52836c9a9fc61794c8ddd"><div class="ttname"><a href="group__wickr__identity.html#ga9e4a0f3736d52836c9a9fc61794c8ddd">wickr_identity_destroy</a></div><div class="ttdeci">void wickr_identity_destroy(wickr_identity_t **identity)</div></div>
<div class="ttc" id="structwickr__identity__chain_html_acee365b411eb4a7e7c68c115d60e166e"><div class="ttname"><a href="structwickr__identity__chain.html#acee365b411eb4a7e7c68c115d60e166e">wickr_identity_chain::status</a></div><div class="ttdeci">wickr_identity_chain_status status</div><div class="ttdef"><b>Definition:</b> identity.h:111</div></div>
<div class="ttc" id="structwickr__ec__key_html"><div class="ttname"><a href="structwickr__ec__key.html">wickr_ec_key</a></div><div class="ttdoc">Representation of public and private Elliptic Curve Keypair information as buffers.</div><div class="ttdef"><b>Definition:</b> eckey.h:90</div></div>
<div class="ttc" id="structwickr__identity_html_aed3657b22d83bb810b51ea1d1520b23e"><div class="ttname"><a href="structwickr__identity.html#aed3657b22d83bb810b51ea1d1520b23e">wickr_identity::identifier</a></div><div class="ttdeci">wickr_buffer_t * identifier</div><div class="ttdef"><b>Definition:</b> identity.h:87</div></div>
<div class="ttc" id="group__wickr__identity_html_gadbddf6d49fddb2df103486970b3d564b"><div class="ttname"><a href="group__wickr__identity.html#gadbddf6d49fddb2df103486970b3d564b">wickr_identity_chain_destroy</a></div><div class="ttdeci">void wickr_identity_chain_destroy(wickr_identity_chain_t **chain)</div></div>
<div class="ttc" id="group__wickr__identity_html_ga12f5b33c4947b6a2ca3df3bdaacafa10"><div class="ttname"><a href="group__wickr__identity.html#ga12f5b33c4947b6a2ca3df3bdaacafa10">wickr_identity_chain_validate</a></div><div class="ttdeci">bool wickr_identity_chain_validate(const wickr_identity_chain_t *chain, const wickr_crypto_engine_t *engine)</div></div>
<div class="ttc" id="group__wickr__identity_html_gae820c1efc090fef6a8d27dd700316023"><div class="ttname"><a href="group__wickr__identity.html#gae820c1efc090fef6a8d27dd700316023">wickr_node_identity_gen</a></div><div class="ttdeci">wickr_identity_t * wickr_node_identity_gen(const wickr_crypto_engine_t *engine, const wickr_identity_t *root_identity)</div></div>
<div class="ttc" id="structwickr__buffer_html"><div class="ttname"><a href="structwickr__buffer.html">wickr_buffer</a></div><div class="ttdoc">Represents an array of bytes and the length of the allocation associated with those bytes.</div><div class="ttdef"><b>Definition:</b> buffer.h:51</div></div>
<div class="ttc" id="group__wickr__identity_html_ga75bfef275a250a32784231e8c042913b"><div class="ttname"><a href="group__wickr__identity.html#ga75bfef275a250a32784231e8c042913b">wickr_identity_create</a></div><div class="ttdeci">wickr_identity_t * wickr_identity_create(wickr_identity_type type, wickr_buffer_t *identifier, wickr_ec_key_t *sig_key, wickr_ecdsa_result_t *signature)</div></div>
<div class="ttc" id="structwickr__identity_html_a685dae977849c05c84ee4a0b10c9396d"><div class="ttname"><a href="structwickr__identity.html#a685dae977849c05c84ee4a0b10c9396d">wickr_identity::type</a></div><div class="ttdeci">wickr_identity_type type</div><div class="ttdef"><b>Definition:</b> identity.h:86</div></div>
<div class="ttc" id="structwickr__identity__chain_html_a0982b1510591138e2e7d0546741bc6e0"><div class="ttname"><a href="structwickr__identity__chain.html#a0982b1510591138e2e7d0546741bc6e0">wickr_identity_chain::root</a></div><div class="ttdeci">wickr_identity_t * root</div><div class="ttdef"><b>Definition:</b> identity.h:112</div></div>
<div class="ttc" id="structwickr__ecdsa__result_html"><div class="ttname"><a href="structwickr__ecdsa__result.html">wickr_ecdsa_result</a></div><div class="ttdoc">Elliptic Curve Digital Signature Algorithm Result.</div><div class="ttdef"><b>Definition:</b> ecdsa.h:54</div></div>
<div class="ttc" id="group__wickr__identity_html_ga8ac0f348981ec55ecbf365d6834a3c28"><div class="ttname"><a href="group__wickr__identity.html#ga8ac0f348981ec55ecbf365d6834a3c28">wickr_identity_get_bilateral_fingerprint</a></div><div class="ttdeci">wickr_fingerprint_t * wickr_identity_get_bilateral_fingerprint(const wickr_identity_t *identity, const wickr_identity_t *remote_identity, wickr_crypto_engine_t engine)</div></div>
<div class="ttc" id="group__wickr__identity_html_ga14d1fb3ddd1dbd7797eb9b628eef99fe"><div class="ttname"><a href="group__wickr__identity.html#ga14d1fb3ddd1dbd7797eb9b628eef99fe">wickr_identity_copy</a></div><div class="ttdeci">wickr_identity_t * wickr_identity_copy(const wickr_identity_t *source)</div></div>
<div class="ttc" id="group__wickr__identity_html_ga4d9053bf0a7ea47c599891dce21d426a"><div class="ttname"><a href="group__wickr__identity.html#ga4d9053bf0a7ea47c599891dce21d426a">wickr_identity_get_fingerprint</a></div><div class="ttdeci">wickr_fingerprint_t * wickr_identity_get_fingerprint(const wickr_identity_t *identity, wickr_crypto_engine_t engine)</div></div>
<div class="ttc" id="group__wickr__identity_html_ga378e5b6ddabfe2c6ae7dbd5bdc43278e"><div class="ttname"><a href="group__wickr__identity.html#ga378e5b6ddabfe2c6ae7dbd5bdc43278e">wickr_identity_create_from_buffer</a></div><div class="ttdeci">wickr_identity_t * wickr_identity_create_from_buffer(const wickr_buffer_t *buffer, const wickr_crypto_engine_t *engine)</div></div>
<div class="ttc" id="structwickr__fingerprint_html"><div class="ttname"><a href="structwickr__fingerprint.html">wickr_fingerprint</a></div><div class="ttdoc">A fingerprint representation of a combination of signature keys / identifiers.</div><div class="ttdef"><b>Definition:</b> fingerprint.h:75</div></div>
<div class="ttc" id="structwickr__identity__chain_html_a4343dae5f1c82057289c26e5c7bb1226"><div class="ttname"><a href="structwickr__identity__chain.html#a4343dae5f1c82057289c26e5c7bb1226">wickr_identity_chain::node</a></div><div class="ttdeci">wickr_identity_t * node</div><div class="ttdef"><b>Definition:</b> identity.h:113</div></div>
<div class="ttc" id="group__wickr__identity_html_ga78aefa3835eb13ca75c0129583b5ebfa"><div class="ttname"><a href="group__wickr__identity.html#ga78aefa3835eb13ca75c0129583b5ebfa">wickr_identity_chain_status</a></div><div class="ttdeci">wickr_identity_chain_status</div><div class="ttdef"><b>Definition:</b> identity.h:61</div></div>
<div class="ttc" id="structwickr__identity_html_afb6bd9f5f9707be10fb273ce8d0b5928"><div class="ttname"><a href="structwickr__identity.html#afb6bd9f5f9707be10fb273ce8d0b5928">wickr_identity::signature</a></div><div class="ttdeci">wickr_ecdsa_result_t * signature</div><div class="ttdef"><b>Definition:</b> identity.h:89</div></div>
<div class="ttc" id="group__wickr__identity_html_ga32097764e57e70d85a2e1277146495c9"><div class="ttname"><a href="group__wickr__identity.html#ga32097764e57e70d85a2e1277146495c9">wickr_identity_sign</a></div><div class="ttdeci">wickr_ecdsa_result_t * wickr_identity_sign(const wickr_identity_t *identity, const wickr_crypto_engine_t *engine, const wickr_buffer_t *data)</div></div>
<div class="ttc" id="structwickr__identity_html_a788a08ac03576cb76d9b2eaf81a7af3e"><div class="ttname"><a href="structwickr__identity.html#a788a08ac03576cb76d9b2eaf81a7af3e">wickr_identity::sig_key</a></div><div class="ttdeci">wickr_ec_key_t * sig_key</div><div class="ttdef"><b>Definition:</b> identity.h:88</div></div>
<div class="ttc" id="structwickr__identity__chain_html"><div class="ttname"><a href="structwickr__identity__chain.html">wickr_identity_chain</a></div><div class="ttdoc">Represents a root -&gt; node relationship as well as it's signature status.</div><div class="ttdef"><b>Definition:</b> identity.h:110</div></div>
<div class="ttc" id="structwickr__crypto__engine_html"><div class="ttname"><a href="structwickr__crypto__engine.html">wickr_crypto_engine</a></div><div class="ttdoc">Interface to a set of cryptographic operations used throughout the library. Currently the default imp...</div><div class="ttdef"><b>Definition:</b> crypto_engine.h:53</div></div>
<div class="ttc" id="group__wickr__identity_html_ga79ca0713d0b90873e584379f26cbd051"><div class="ttname"><a href="group__wickr__identity.html#ga79ca0713d0b90873e584379f26cbd051">wickr_identity_serialize</a></div><div class="ttdeci">wickr_buffer_t * wickr_identity_serialize(const wickr_identity_t *identity)</div></div>
<div class="ttc" id="group__wickr__identity_html_ga79551385194ba6b044b676ce5c7400e6"><div class="ttname"><a href="group__wickr__identity.html#ga79551385194ba6b044b676ce5c7400e6">wickr_identity_chain_create</a></div><div class="ttdeci">wickr_identity_chain_t * wickr_identity_chain_create(wickr_identity_t *root, wickr_identity_t *node)</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.15
</small></address>
</body>
</html>
